<%@ page contentType="text/html"%>
<%@ include file="/jsp/admin_header.jsp"%>
<%@ include file="/jsp/admin_left_menu.jsp"%>
<!--  
      Autore: Giorgio Vitale
-->
<H1>Fornitori</H1>

<%@ page import="it.dei.unipd.healthservice.resource.*"%>
<%@ page import="java.util.*" %>
<% List<Fornitore> fornitori = (List<Fornitore>)request.getAttribute("fornitori");
	if (fornitori==null)
		fornitori = new ArrayList<Fornitore>();
%>

<table class="corpo">
	<thead>
		<tr>
			<th>P.IVA</th>
			<th>Ragione Sociale</th>
			<th>Mail</th>
			<th>Tel</th>
			<th>Stato</th>
			<th>Provincia</th>
			<th>Citt&agrave;</th>
		</tr>
	</thead>	
	<tbody>
<% for (Fornitore f : fornitori) {%>
	<tr><td> <a href="view_fornitori?dettagli=<%= f.getPiva() %>"><%= f.getPiva() %></a>&nbsp;</td>
		<td> <%= f.getRagioneSociale() %>&nbsp;</td>
		<td> <%= f.getMail() %>&nbsp;</td>
		<td> <%= f.getTel() %>&nbsp;</td>
		<td> <%= f.getStato() %>&nbsp;</td>
		<td> <%= f.getProvincia() %>&nbsp;</td>
		<td> <%= f.getCitta() %>&nbsp;</td>
<% } %>		
	</tbody>
</table>

<% String err = (String)request.getAttribute("errore");%>
<%	if (err!=null){%>
<%= err %>
<%} //err !=null%>
<jsp:include page="/jsp/admin_footer.jsp" flush="true" />

</BODY>
</HTML>